package com.huak.heatmap.service.impl;

import com.huak.heatmap.dao.CompanyPositionDao;
import com.huak.heatmap.entity.CompanyPosition;
import com.huak.heatmap.enums.CityEnum;
import com.huak.heatmap.service.CompanyPositionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author liuhuan
 * @date 2018/10/26 17:29
 * @description
 */
@Service
public class CompanyPositionServiceImpl implements CompanyPositionService {

    @Autowired
    private CompanyPositionDao companyPositionDao;

    @Override
    public List<CompanyPosition> findByCity(String city) {
        return companyPositionDao.findByCity(CityEnum.getName(city));
    }
}
